﻿using Core.IRepository;
using Core.Models;
using Core.Repostory;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.Repository
{
    public class UnitOfWork : IUnitOfWork
    {
        public CoreContext db;
        public UnitOfWork(CoreContext db)
        {
            this.db = db;
        }

        public int SaveChanges()
        {
            return db.SaveChanges();
        }

        public async Task<int> SaveChangesAsync()
        {
            return await db.SaveChangesAsync();
        }

       

       
    }
}
